-- GENERATED SPELL FOR [Priestess of the Moon] --


function spell0_15634(pUnit, Event) --@Mass Healing,Self--
pUnit:FullCastSpellOnTarget(25839,pUnit)
pUnit:RegisterEvent('Sorts_15634', 13000, 1)
end

function spell1_15634(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15634', 589, 1)
end

function Sorts_15634(pUnit, Event)
local choix_sorts_15634 = math.random(0, 1)
if choix_sorts_15634 == 0 then
pUnit:RegisterEvent('spell0_15634', 1, 1)
end
if choix_sorts_15634 == 1 then
pUnit:RegisterEvent('spell1_15634', 1, 1)
end
end

function mob15634_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15634', math.random(1500, 3000), 1)
end

function mob15634_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15634_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15634_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15634, 1, 'mob15634_Action')
RegisterUnitEvent(15634, 2, 'mob15634_Leave')
RegisterUnitEvent(15634, 3, 'mob15634_Kill')
RegisterUnitEvent(15634, 4, 'mob15634_Die')
